package com.pro.back.service;

import com.pro.back.bean.Device;
import com.pro.back.bean.DeviceType;
import com.pro.back.bean.bo.DeviceAdd;
import com.pro.back.bean.bo.DeviceAddInfo;
import com.pro.back.bean.bo.RepairInfo;
import com.pro.back.bean.common.ApiRes;
import com.pro.back.bean.po.DeviceAddDto;
import com.pro.back.bean.po.DevicePO;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author: jingwenjuan
 * @Description:
 * @Date: 2025-04-19
 */
public interface DeviceService {

    public ApiRes selectDeviceType() ;
    public ApiRes insertDeviceType ( DeviceType type) ;
    ApiRes delDeviceType ( Long id) ;
    ApiRes selectAllDevice( DevicePO po );
    ApiRes insertDevice( Device device);
    ApiRes updateDevice( Device device);
    ApiRes delDevice(Long id);

    ApiRes selectAllDeviceAdd(DeviceAddDto dto);

    ApiRes insertDeviceAdd(DeviceAdd add);

    ApiRes delDeviceAdd(Long id);

    ApiRes insertDeviceInfo(DeviceAddInfo info);

    ApiRes selectDeviceInfoByAdd(Long id);

    ApiRes insertRepairInfo(RepairInfo info);

    ApiRes selectByRepairId(Long id);

    ApiRes exportRepair(HttpServletResponse response) throws IOException;


    ApiRes exportDelDevice(HttpServletResponse response) throws IOException;

}
